<template>
  <div class="pay_history_item">
    <div class="name">
      <span>{{ data.particularYear }}第{{ data.payQuarter }}季度党费</span>
      <span>-{{ Number(data.realitycostMoney).toFixed(2) }}</span>
    </div>
    <div class="date">{{ data.payTime }}</div>
  </div>
</template>

<script setup lang='ts'>
import { PropType, ref } from 'vue';
import { IUnPay } from '../../type';
const props = defineProps({
  data: {
    // 他是自定义类型
    type: Object as PropType<IUnPay>,
    default: () => ({})
  },
})
</script>

<style lang='less' scoped>
.pay_history_item {
  padding: 15px 20px;
  box-sizing: border-box;
  background-color: #fff;
  border-radius: 6px;
  text-align: left;
  color: black;
  margin-top: 10px;

  .name {
    font-size: 16px;
    font-weight: 900;
    display: flex;
    justify-content: space-between;
  }

  .date {
    color: #8893a7;
    font-size: 14px;
    margin-top: 7px;
  }

}
</style>